import { createRequest } from '/@/api/service';
const module = 'ib/parking/v1/ParkCarApi/';

/**
 * @function 车辆申请-列表查询
 * @param data
 * @param header
 * @returns {Promise}
 */
function PARK_CAR_LIST_QUERY(
  data: ParkCarApi.ParkCarListQueryReq,
  header: object = {},
): Promise<ParkCarApi.ParkCarListQueryResp> {
  return createRequest(`${process.env.APP_API_URL}${module}queryParkCarList`, data, header, 'POST');
}

/**
 * @function 车辆管理-车辆删除
 * @param data
 * @param header
 * @returns {Promise}
 */
function DELETE_PARK_CAR(
  data: ParkCarApi.DeleteParkCarReq,
  header: object = {},
): Promise<ParkCarApi.DeleteParkCarResp> {
  return createRequest(`${process.env.APP_API_URL}${module}deleteParkCar`, data, header, 'POST');
}

export { PARK_CAR_LIST_QUERY, DELETE_PARK_CAR };
